import React from 'react'
import logoImg from '../../assets/images/images/Index/logo.png';
import { Button, message } from 'antd';
import xingxing from '../../assets/images/84bf16e44725bc97c403.png'
import { useState } from 'react';
import { Input, Radio, Space } from 'antd';
import { Checkbox, Col, Row } from 'antd';
import { Progress } from 'antd';
import { useNavigate } from 'react-router-dom'
import { useEffect } from 'react';
import { useParams } from 'react-router-dom'
import api from '../../apis/answer'
import Item from 'antd/es/list/Item';
const Answer = () => {
  const orgt = ["A", 'B', 'C', 'D']
  const params = useParams()
  const onChangeS = (checkedValues) => {
    console.log('checked = ', checkedValues);
  };
  const navigate = useNavigate()
  const [value, setValue] = useState();
  const onChange = (e) => {
    console.log('radio checked', e.target.value);
    setValue(e.target.value);
  };
  function pagres() {
    navigate('/endexam')
  }
  const [text, setText] = useState([])
  const [textAll, setTextAll] = useState([])
  useEffect(() => {
    api.findTestsById({ _id: params._id }).then((res) => {
      console.log(res);
      if (res.data.code == 1) {
        setText(res.data.data.exerciseId)
      } else {
        message.error('请求失败')
      }
    })
  }, [])
  return (
    <div style={{ backgroundColor: '#f5f7fa', width: '100vw', }}>
      
      
      <div style={{ width: '100%', height: '60px', background: '#726fff', display: 'flex', justifyContent: 'center', alignItems: 'center', color: '#fff', marginTop: '30px' }}>Copyright © 2021  成都蜗牛创想科技有限公司 </div>
    </div>
  )
}

export default Answer